﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using TDB.DBInternals;

namespace TDB.Communication
{
  [ServiceKnownType("GetKnowTypes", typeof(AssemblyStore))]
  [ServiceContract(SessionMode = SessionMode.Allowed, ProtectionLevel = System.Net.Security.ProtectionLevel.None)]
  public interface ICommandService
  {
    [OperationContract(IsOneWay = true)]
    void Set(string database, dynamic entity);

    [OperationContract(IsOneWay = true)]
    void SetCollection(string database, IEnumerable<dynamic> entities);
  }
}
